package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.bo.ResourceBO;
import com.cdck.safe.dete.model.entity.Resource;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.vo.ResourceRecordVO;
import com.cdck.safe.dete.model.vo.ResourceStatusVO;
import com.cdck.safe.dete.model.vo.ResourceVO;
import com.cdck.safe.dete.model.vo.SeatStatusVO;

import java.util.List;

/**
 * (Resource)表服务接口
 *
 * @author wp
 * @since 2024-05-18 14:33:03
 */
public interface ResourceService extends IService<Resource> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<ResourceVO> queryByPage(BaseKeywordsQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    Resource getResourceFormData(Long id);

    /**
     * 新增数据
     *
     * @param resource Resource对象
     * @return
     */
    boolean saveResource (Resource resource);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramresource Resource对象
     * @return
     */
    boolean updateResource(Long id, Resource resource);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteResources(String idsStr);

    boolean applicationData();

    List<ResourceStatusVO> getResourceStatus(ResourceBO resourceBO);

    IPage<ResourceRecordVO> getApplicationPage(BaseKeywordsQuery queryParams);
}
